package com.jetsum.micro.controller;

import com.jetsum.micro.service.OrderHandleService;
import com.jetsum.micro.service.OrderHandleServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Autowired
    private OrderHandleService orderHandleService;

    @GetMapping("/order")
    public String orderHandle(@RequestParam(required = false,defaultValue = "-1") Integer count) {
        return orderHandleService.handle(count);
    }
}
